@import './scss/home-pc.scss';
@import './scss/home-mobile.scss';

.homepage-container {
  width: 100%;
  height: 100%;
  background-color: var(--td-bg-color-container);
}

.homepage-background {
  width: 100%;
  left: 0;
  top: 0;
  height: 800px;
  opacity: 1;
  background: var(--td-bg-color-container);
}
.homepage-login {
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  width: 95%;
  margin-left: 2.5%;
  margin-right: 2.5%;
  border-radius: 1.25rem;
  height: 100%;
  display: grid;
  gap: 0 0;
  position: relative;
}
.login-container {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  z-index: 1;
  flex-direction: column;
  display: flex;
}
.login-title {
  text-align: center;
  margin-bottom: 1.875rem;
}
.login-title h1 {
  font: var(--Heading-1);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 3rem;
  background: var(--h1-bg-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wx-login p,
.login-title p {
  color: var(--text-title-color);
  font-weight: bolder;
  letter-spacing: 0;
  line-height: 1.5;
}
.login-title p {
  color: var(--text-title-color-1);
}
.mobile-login {
  flex-direction: column;
  display: flex;
  align-items: center;
}
.mobile-login .t-input {
  height: 3.75rem;
  max-height: 50px;
  max-width: 500px;
  width: 100%;
  border-radius: 0.625rem;
}
.mobile-login .t-button {
  right: -8px;
  border-radius: 0.625rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border: none !important;
}
.wx-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}
.wx-login .t-button {
  height: 2.5rem;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #1ea366 !important;
  border-color: #1ea366 !important;
}
// 商品区域
//商品区域
.homepage-shop {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
// 商品栏标题
//分享栏标题
.all-title {
  text-align: center;
  align-items: center;
}
//标题容器
.title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
//商品容器
.shop-card-container {
  margin: 4rem 2.5% 0 2.5%;
  width: 95%;
  display: flex;
  flex-wrap: wrap;
  // justify-content: space-between;
}
//通用商品容器
.main-home-card {
  width: 30%;
  position: relative;
  display: inline-block;
  margin-bottom: 5rem;
  overflow: hidden;
  min-height: 400px;
  border-radius: 0.625rem;
  box-shadow: var(--shadow-5);
  backdrop-filter: blur(10px);
}

//热销容器
.main-home-card .shop-hot {
  position: absolute;
  background-color: rgb(255, 243, 189);
  width: 5rem;
  height: 2.5rem;
  border-bottom-right-radius: 0.625rem;
  box-shadow: var(--shadow-5);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
//热销文字
.main-home-card .shop-hot p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--header-bg-color);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: bold;
  color: #232323;
}
//商品图片容器
.main-home-card-img {
  height: 200px;
  width: 100%;
  text-align: center;
  max-height: 7rem;
  overflow: hidden;
  position: relative;
  border-radius: 1.25rem;
}
//商品图片
.main-home-card-img img {
  padding-top: 1.25rem;
  height: 60%;
}
//商品销量
.main-home-card-num {
  position: absolute;
  top: 5rem;
  right: 2rem;
  font-size: 0.875rem;
  color: var(--text-p-color);
}
//商品内容容器
.main-home-card-body {
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 3rem;
  height: auto;
  text-align: center;
  border-radius: 0.625rem;
}
//商品名称容器
.main-home-card-name {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  letter-spacing: 0.0125rem;
  align-items: center;
  margin-top: -1.25rem;
}
//名称文字
.main-home-card-name span {
  font-size: 28px;
  font-weight: 700;
  line-height: 3rem;
  width: 145px;
  height: 56px;
  font-weight: bold;
  letter-spacing: 0em;
  margin-top: 1rem;
  white-space: nowrap;
}
//价格容器
.price-all {
  margin-right: 1rem;
}
//价格字体
.price-all .price {
  font-size: 20px;
  font-weight: 700;
  line-height: 3rem;
  color: var(--text-p-color) !important;
}
.price strong {
  color: #f44336 !important;
}
//商品描述
.main-home-card-strip {
  width: 80%;
  height: 3rem;
  line-height: 2.5rem;
  border-radius: 1.5rem;
  align-items: center;
  display: flex;
  margin-bottom: 1rem;
  margin-top: 1rem;
}
//商品描述前图标
.icon-check {
  color: #232323;
  align-items: center;
  display: inline-flex;
  font-size: 1.5rem;
  justify-content: center;
  letter-spacing: normal;
  line-height: 1;
  position: relative;
  text-indent: 0;
  vertical-align: middle;
  user-select: none;
  padding-right: 0.9rem;
  margin-left: 2rem;
}
//文字
.main-home-card-body p {
  font-size: 16px;
  font-weight: bold;
}
//描述总容器
.card-strip-warp {
  padding-bottom: 1rem;
}
.main-home-card-body .first,
.main-home-card-body .third {
  margin-left: 15%;
}
.main-home-card-body .second,
.main-home-card-body .fourth {
  margin-left: 5%;
}
.main-home-card-body .fourth {
  margin-bottom: 1rem;
}
//按钮容器
.main-home-btn {
  padding-bottom: 3rem;
  padding-top: 3rem;
}
//按钮
.main-home-btn .t-button {
  width: 70%;
  margin-left: 15%;
  margin-right: 15%;
  font-size: 16px;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: #1ea366;
  border-color: #1ea366;
  box-shadow: var(--shadow-4);
  font-weight: bold;
}
.main-home-btn .t-button:hover {
  background-color: aquamarine;
  border-color: aquamarine;
  color: #0f161f;
}
.main-home-btn .t-button:not(.t-is-disabled):not(.t-button--ghost) {
  --ripple-color: var(--td-success-color);
}
.shop-card-container .main-home-card.blue {
  background-color: var(--blue-card-color);
  .main-home-card-body {
    background-color: var(--white-body-color);
    span {
      color: var(--blue-body-color-4);
    }
  }
  .first {
    background-color: var(--blue-body-color-1);
  }
  .second {
    background-color: var(--blue-body-color-2);
  }
  .third {
    background-color: var(--blue-body-color-3);
  }
  .fourth {
    background-color: var(--blue-body-color-4);
  }
}

.shop-card-container .main-home-card.white {
  background-color: var(--white-card-color-1);
  .main-home-card-body {
    background-color: var(--blue-body-color);
    span {
      color: var(--white-body-color-4);
    }
  }
  .first {
    background-color: var(--white-body-color-1);
  }
  .second {
    background-color: var(--white-body-color-2);
  }
  .third {
    background-color: var(--white-body-color-3);
  }
  .fourth {
    background-color: var(--white-body-color-4);
  }
}
//分享容器
.homepage-share {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 22, 31, 1);
  border-radius: 1.25rem;
}
//分享卡片容器
.share-card-container {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.875rem;
}
.share-description p {
  color: var(--text-title-color) !important;
}
//子卡片背景
.share-card {
  width: 90%;
  // padding: 0 70px;
  height: 400px;
  margin: 0 5% 0 5%;
  border-radius: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: var(--white-body-color);
}

//左右按钮
.prev-button,
.next-button {
  margin-right: -1rem;
  margin-left: -1rem;
}
//分享子卡片
.main-share-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  position: relative;
  background: #0f161f;
  height: 300px;
}
.pay-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  margin-top: -55px;
  margin-right: 15px;
}
.shop-dialog-header {
  display: flex;

  // display: flex;
  // justify-content: space-between;
  // align-items: center;
  // border-bottom: 1px solid #3333330f;
  width: 100%;
}
.shop-header-price {
  position: relative;
  width: 100%;
  margin-top: -20px;
}
.shop-header-price strong {
  font-weight: 700;
  font-size: 16px;
  color: #ee0a24;
}
.shop-header-price p {
  font-size: 10px;
  color: #999999;
}
.popup-sku__goods-name {
  font-size: 16px;
  line-height: 16px;
  display: flex;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  margin-bottom: 10px;
  text-overflow: ellipsis;
}
.goods-price-container{
  justify-content: space-between;
  display: flex;
  align-items: center;
  width: 100%;
}

.t-dialog__close {
  transform: translateY(-50%) !important;
}
.my-input-class {
  margin-bottom: 1rem;
}
.my-input-class input {
  /* your custom styles here */
  border-radius: 4px;
  border: 1px solid transparent;
  background: hsla(0, 0%, 50.2%, 0.08) !important;
  box-sizing: border-box;
  transition: var(--transition-easeOut-2);
  width: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  height: 40px;
}
.shop-dialog-footer {
  text-align: center;
}
.shop-dialog-btn {
  width: 100%;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition-easeOut-2);
}
.shop-dialog-btn:nth-child(1) {
  margin-bottom: 1rem;
}
.shop-dialog-btn:nth-child(2) {
  margin-left: 0 !important;
}
.t-dialog__footer {
  padding: 0 !important;
}
.t-dialog__body {
  padding-bottom: 0 !important;
}
.main-home-card-strip p {
  color: #0f161f;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
